package com.wdd.myplatform.entity.wx;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 微信支付回调数据表
 * @Author: jeecg-boot
 * @Date:   2022-03-03
 * @Version: V1.0
 */
@Data
@TableName("wechat_pay_notify")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wechat_pay_notify对象", description="微信支付回调数据表")
public class WeChatPayNotify {
    
	/**主键(微信支付订单号)*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键(微信支付订单号)")
	private String id;
	/**微信支付订单号*/
	@Excel(name = "微信支付订单号", width = 15)
    @ApiModelProperty(value = "微信支付订单号")
	private String appId;
	/**微信openId*/
	@Excel(name = "微信openId", width = 15)
    @ApiModelProperty(value = "微信openId")
	private String mchId;
	/**商户订单号(对应wechat_pay_order表的id)*/
	@Excel(name = "商户订单号(对应wechat_pay_order表的id)", width = 15)
    @ApiModelProperty(value = "商户订单号(对应wechat_pay_order表的id)")
	private String outTradeNo;
	/**交易类型*/
	@Excel(name = "交易类型", width = 15)
    @ApiModelProperty(value = "交易类型")
	private String tradeType;
	/**支付状态（SUCCESS：支付成功REFUND：转入退款NOTPAY：未支付CLOSED：已关闭REVOKED：已撤销（付款码支付）USERPAYING：用户支付中（付款码支付）PAYERROR：支付失败(其他原因，如银行返回失败)）*/
	@Excel(name = "支付状态（SUCCESS：支付成功REFUND：转入退款NOTPAY：未支付CLOSED：已关闭REVOKED：已撤销（付款码支付）USERPAYING：用户支付中（付款码支付）PAYERROR：支付失败(其他原因，如银行返回失败)）", width = 15)
    @ApiModelProperty(value = "支付状态（SUCCESS：支付成功REFUND：转入退款NOTPAY：未支付CLOSED：已关闭REVOKED：已撤销（付款码支付）USERPAYING：用户支付中（付款码支付）PAYERROR：支付失败(其他原因，如银行返回失败)）")
	private String tradeState;
	/**支付完成时间*/
	@Excel(name = "支付完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付完成时间")
	private Date successTime;
	/**原始数据*/
	@Excel(name = "原始数据", width = 15)
    @ApiModelProperty(value = "原始数据")
	private Object originalData;
	/**resource对象解密数据*/
	@Excel(name = "resource对象解密数据", width = 15)
    @ApiModelProperty(value = "resource对象解密数据")
	private Object resourceData;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
